package com.gongpingjialoan.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

/**
 * Created by Administrator on 2016/7/8.
 */
public class FbBoardCast extends BroadcastReceiver {

    private RefreshFb mRefreshFb;

    public static final String FBLIST = "con.gongpingjia.fbboardCast";


    public void setRefreshFb(RefreshFb refreshFb) {
        mRefreshFb = refreshFb;
    }

    @Override
    public void onReceive(Context context, Intent intent) {
        if(intent.getAction().equals(FBLIST)){
            if(mRefreshFb!=null){
                mRefreshFb.refresh();
            }
        }
    }


    public interface RefreshFb{
        public void refresh();
    }
}
